package common;

import common.serializer.Serializer;
import common.serializer.impl.JSONSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Author: Hugh
 * @Date: 2020/6/13
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class RpcRequest extends JSONSerializer implements Serializable {
    /**
     * 请求对象的ID
     */
    private Long requestId;

    /**
     * 类名
     */
    private String className;

    /**
     * 方法名
     */
    private String methodName;

    /**
     * 参数类型
     */
    private Class<?>[] parameterTypes;

    /**
     * 入参
     */
    private Object[] parameters;

}
